from django.contrib import admin

from .models import (
    Patient,
    PhotoTooth,
)

# class InlineImage(admin.TabularInline):
#     model = Images


@admin.register(Patient)
class PatientAdmin(admin.ModelAdmin):
    list_display = ("id", "fam", "im", "ot", "dr", "update_at", "phone", "med_card")
    list_display_links = ("fam", "med_card")
    search_fields = ("fam", "med_card")
    readonly_fields = ("update_at",)
    list_per_page = 25
